<?php
defined('_JEXEC') or die('Restricted access');
$tmpl = "templates/tpl_automobil/";
$db = JFactory::getDBO();
$sess = JFactory::getSession();
?>
<script language="javascript">
$(document).ready(function(){
	$('.btn_cancel').live('click',function(){
		$('#alert_at').html('<p>Er du sikkert på, at du vil slette tilmelding?</p>');
		$('#backoverlay_at').show();
		$('#show_popup_at').show();
		$('#ok_link').live('click',function(){location.href='index.php?option=com_ecommerce&task=destroyRegister';});
		return false;
	});
});
</script>
<link rel="stylesheet" href="<?php echo $tmpl;?>css/datepicker.css"/>
<p><span class="float_left f28">Tilmelding af bil</span><span class="link-login"><a href="index.php?option=com_user&view=user&layout=profile&Itemid=13">
  <?php if($user->guest==0) {echo  "Min Profil";} ;?>
  </a><a href="index.php?option=com_user&view=login&task=logout&Itemid=13" class="m12l">
  <?php if($user->guest==0) {echo  "Log ud";};?>
  </a></span></p>
<div class="cb"></div>
<div class="tt m10b"></div>
<div class="p5t">
    <div class="status-step4"></div>
    <div class="w739 form_tilmelding1 float_left">
        <div class="form_tilmelding3 float_left m20t w355 form_tilmelding4">
        <h3 class="boder_b_d">Specifikationer</h3>
        <?php if($sess->get('car_type')){?><label>Tilmelding af bilen Biltype:</label><p><?php echo $sess->get('car_type');?></p><?php }?>
        <div class="cb"></div>
		<?php if($sess->get('placering')){?><label>Placering:</label><p><?php echo $sess->get('placering');?></p><?php }?>
        <div class="cb"></div>
        <?php if($sess->get('model')){?><label>Model:</label><p><?php echo $sess->get('model');?></p><?php }?>
        <div class="cb"></div>
        <?php if($sess->get('fuel')){?><label>Brændstof:</label><p><?php echo $sess->get('fuel');?></p><?php }?>
        <div class="cb"></div>
        <?php if($sess->get('desired_price')){?><label>Din forventet hammerslagspris:</label><p><?php echo number_format($sess->get('desired_price'),0,",",".");?> DKK</p><?php }?>
        <div class="cb"></div>
        <?php if($sess->get('register_day')){?><label>1st Reg.:</label><p><?php echo $sess->get('register_day');?></p><?php }?>
        <div class="cb"></div>
        <?php if($sess->get('view_day')){?><label>Seneste syn:</label><p><?php echo $sess->get('view_day');?></p><?php }?>
        <div class="cb"></div>
        <?php if($sess->get('registry')){?><label>Skal synes:</label><p><?php echo $sess->get('registry');?></p><?php }?>
        <div class="cb"></div>
        <?php if($sess->get('stand')){?><label>Stand/Kategori:</label><p><?php echo $sess->get('stand');?></p><?php }?>
        <div class="cb"></div>
		<?php if($sess->get('km')){?><label>Km.stand:</label><p><?php echo $sess->get('km');?></p><?php }?>
        <div class="cb"></div>
        <?php if($sess->get('color')){?><label>Farve:</label><p><?php echo $sess->get('color');?></p><?php }?>
        <div class="cb"></div>
        <?php if($sess->get('color_type')){?><label>Lakstand:</label><p><?php echo $sess->get('color_type');?></p><?php }?>
        <div class="cb"></div>
        <?php if($sess->get('cabin_color')){?><label>Kabinefarve:</label><p><?php echo $sess->get('cabin_color');?></p><?php }?>
        <div class="cb"></div>
        <?php if($sess->get('chassis')){?><label>Stelnummer:</label><p><?php echo $sess->get('chassis');?></p><?php }?>
        <div class="cb"></div>
        <?php if($sess->get('carid')){?><label>Registeringsnummer:</label><p><?php echo $sess->get('carid');?></p><?php }?>
        <div class="cb"></div>
        <a class="btn" href="index.php?option=com_ecommerce&view=register&Itemid=7&layout=step1&action=edit"><img src="<?php echo $tmpl;?>images/btn_edit.jpg" alt=""/></a>

		
        <div class="m20t"></div>
        <h3 class="boder_b_d m10b">Sikkerhed</h3>
        <ul class="list-report">
            <?php if($sess->get('abs')){?><li><?php echo $sess->get('abs');?></li><?php }?>
            <?php if($sess->get('alarm')){?><li><?php echo $sess->get('alarm');?></li><?php }?>
            <?php if($sess->get('antispin')){?><li><?php echo $sess->get('antispin');?></li><?php }?>
            <?php if($sess->get('start')){?><li><?php echo $sess->get('start');?></li><?php }?>
            <?php if($sess->get('esp')){?><li><?php echo $sess->get('esp');?></li><?php }?>
            <?php if($sess->get('airbag')){?><li>Airbag: <?php echo $sess->get('airbag');?></li><?php }?>
        </ul>			
        <div class="cl"></div>
        
        <div class="m20t"></div>
        <h3 class="boder_b_d m10b">Interiør</h3>
        <ul class="list-report">
            <?php if($sess->get('armrest')){?><li><?php echo $sess->get('armrest');?></li><?php }?>
            <?php if($sess->get('split_seat')){?><li><?php echo $sess->get('split_seat');?></li><?php }?>
            <?php if($sess->get('wood')){?><li><?php echo $sess->get('wood');?></li><?php }?>
            <?php if($sess->get('leather_steering')){?><li><?php echo $sess->get('leather_steering');?></li><?php }?>
            <?php if($sess->get('seat_cover')){?><li>Sædebetræk: <?php echo $sess->get('seat_cover');?></li><?php }?>
            <li>Justérbart rat: <?php echo $sess->get('flexible');?></li>
            <?php if($sess->get('stand_tire')){?><li>Dæk og fælge: <?php echo $sess->get('stand_tire');?></li><?php }?>
            <?php if($sess->get('alu_tire')){?><li>Dæk og fælge: <?php echo $sess->get('alu_tire');?></li><?php }?>
            <?php if($sess->get('tread')){?><li>Dækmønster(mm): <?php echo $sess->get('tread');?></li><?php }?>
        </ul>			
        <div class="cl"></div>
        
        <div class="m20t"></div>
        <h3 class="boder_b_d m10b">Komfort</h3>
        <ul class="list-report">
            <?php if($sess->get('air_con')){?><li><?php echo $sess->get('air_con');?></li><?php }?>
            <?php if($sess->get('elc_heat_mirror')){?><li><?php echo $sess->get('elc_heat_mirror');?></li><?php }?>
            <?php if($sess->get('sensor')){?><li><?php echo $sess->get('sensor');?></li><?php }?>
            <?php if($sess->get('automatic')){?><li><?php echo $sess->get('automatic');?></li><?php }?>
            <?php if($sess->get('elec_seat')){?><li><?php echo $sess->get('elec_seat');?></li><?php }?>
            <?php if($sess->get('radio')){?><li><?php echo $sess->get('radio');?></li><?php }?>
            <?php if($sess->get('central')){?><li><?php echo $sess->get('central');?></li><?php }?>
            <?php if($sess->get('cruise')){?><li><?php echo $sess->get('cruise');?></li><?php }?>
            <?php if($sess->get('servo')){?><li><?php echo $sess->get('servo');?></li><?php }?>
            <?php if($sess->get('remote')){?><li><?php echo $sess->get('remote');?></li><?php }?>
            <?php if($sess->get('gps')){?><li><?php echo $sess->get('gps');?></li><?php }?>
            <?php if($sess->get('sunroof')){?><li><?php echo $sess->get('sunroof');?></li><?php }?>
            <?php if($sess->get('power_window')){?><li><?php echo $sess->get('power_window');?></li><?php }?>
            <?php if($sess->get('air_con1')){?><li><?php echo $sess->get('air_con1');?></li><?php }?>
            <?php if($sess->get('elec_sunroof')){?><li><?php echo $sess->get('elec_sunroof');?></li><?php }?>
            <?php if($sess->get('elec_mirror')){?><li><?php echo $sess->get('elec_mirror');?></li><?php }?>
            <?php if($sess->get('computer')){?><li><?php echo $sess->get('computer');?></li><?php }?>
            <?php if($sess->get('heated_seat')){?><li><?php echo $sess->get('heated_seat');?></li><?php }?>
            <?php if($sess->get('power_steering')){?><li><?php echo $sess->get('power_steering');?></li><?php }?>
            <?php if($sess->get('bak_sensor')){?><li><?php echo $sess->get('bak_sensor');?></li><?php }?>
            <?php if($sess->get('elec_adj_seat')){?><li><?php echo $sess->get('elec_adj_seat');?></li><?php }?>
            <?php if($sess->get('heated_mirror')){?><li><?php echo $sess->get('heated_mirror');?></li><?php }?>
        </ul>			
        <div class="cl"></div>        
        <div class="m20t"></div>
        <h3 class="boder_b_d m10b">Udvendigt</h3>
        <ul class="list-report">
            <?php if($sess->get('towbar')){?><li><?php echo $sess->get('towbar');?></li><?php }?>
            <?php if($sess->get('lower')){?><li><?php echo $sess->get('lower');?></li><?php }?>
            <?php if($sess->get('fog_light')){?><li><?php echo $sess->get('fog_light');?></li><?php }?>
            <?php if($sess->get('removable_towbar')){?><li><?php echo $sess->get('removable_towbar');?></li><?php }?>
            <?php if($sess->get('xenon')){?><li><?php echo $sess->get('xenon');?></li><?php }?>
            <?php if($sess->get('roof_rail')){?><li><?php echo $sess->get('roof_rail');?></li><?php }?>
            <?php if($sess->get('lamp_washer')){?><li><?php echo $sess->get('lamp_washer');?></li><?php }?>
            <?php if($sess->get('spoiler')){?><li><?php echo $sess->get('spoiler');?></li><?php }?>
        </ul>
        <div class="cl"></div>
        <div class="m10t"></div>
        <a class="btn" href="index.php?option=com_ecommerce&view=register&Itemid=7&layout=step2&action=edit"><img src="<?php echo $tmpl;?>images/btn_edit.jpg" alt=""/></a>
	</div>
    <div class="rightcol-auto m20t m38l w325 float_right">
        <div class="m20t"></div>
        <h3 class="boder_b_d m10b">Indvendig stand</h3>
        <ul class="list-report">
			<li><?php echo $sess->get('clean');?></li>
        </ul>
        <div class="cl"></div>
        <?php if($sess->get('clean_content')){?><p><i><?php echo $sess->get('clean_content');?></i></p><?php }?>
        Bilen har indvendige fejl i sæder, beklædning eller instrumentpanel : <?php if($sess->get('interior_defect')){?><p><i><?php echo $sess->get('interior_defect');?></i></p><?php } else echo 'Nej';?>
        <div class="m10t"></div>
        <div class="cl"></div>

        <div class="m20t"></div>
        <h3 class="boder_b_d m10b">Bemærkninger vedrørende udvendig stand</h3>
        <?php if($sess->get('external')){?><p><i><?php echo $sess->get('external');?></i></p><?php }?>
        <div class="m10t"></div>		
        <div class="cl"></div>
		
        <?php ?>
        <div class="m20t"></div>
        <h3 class="boder_b_d m10b">Frontskade</h3>
        <p><i><?php if($sess->get('front')){echo $sess->get('front');} else echo 'Nej';?></i></p>
        <div class="m10t"></div>		
        <div class="cl"></div>

        <?php ?>
        <div class="m20t"></div>
        <h3 class="boder_b_d m10b">Bagskade</h3>
        <p><i><?php if($sess->get('rear')){echo $sess->get('rear');} else echo 'Nej';?></i></p>
        <div class="m10t"></div>		
        <div class="cl"></div>

        <?php ?>
        <div class="m20t"></div>
        <h3 class="boder_b_d m10b">Venstre</h3>
        <p><i><?php if($sess->get('left')){echo $sess->get('left');} else echo 'Nej';?></i></p>
        <div class="m10t"></div>		
        <div class="cl"></div>

        <?php ?>
        <div class="m20t"></div>
        <h3 class="boder_b_d m10b">Højre</h3>
        <p><i><?php if($sess->get('right')){echo $sess->get('right');} else echo 'Nej';?></i></p>
        <div class="m10t"></div>		
        <div class="cl"></div>

		<a class="btn" href="index.php?option=com_ecommerce&view=register&Itemid=7&layout=step3&action=edit"><img src="<?php echo $tmpl;?>images/btn_edit.jpg" alt=""/></a>
        
       	<div class="m20t"></div>
        <h3 class="boder_b_d m10b">Defekter</h3>
        Har bilen mekaniske defekter? <?php if($sess->get('machinal_defect')){?><p><i><?php echo $sess->get('machinal_defect');?></i></p><?php } else echo 'Nej';?><br />
        Har bilen elektriske defekter? <?php if($sess->get('electrical_defect')){?><p><i><?php echo $sess->get('electrical_defect');?></i></p><?php } else echo 'Nej';?>
        <div class="m10t"></div>
        <div class="cl"></div>
        
        <div class="m20t"></div>
        <h3 class="boder_b_d m10b">Vedligeholdelse</h3>
        Medfølger der servicebog til bilen: <?php if($sess->get('service_book')){?><p><i><?php echo $sess->get('service_book');?></i></p><?php } else echo 'Nej';?><br />
        Er bilens tandrem tidligere blevet skiftet: <?php if($sess->get('belt')){?><p><i><?php echo $sess->get('belt');?> km</i></p><?php } else echo 'Nej';?>
        <?php if($sess->get('front_brake')){?><p><i><?php echo $sess->get('front_brake');?></i></p><?php }?>
        <?php if($sess->get('rear_brake')){?><p><i><?php echo $sess->get('rear_brake');?></i></p><?php }?>
        <?php if($sess->get('exhaust')){?><p><i><?php echo $sess->get('exhaust');?></i></p><?php }?>
        <div class="m10t"></div>
        <div class="cl"></div>
        
        <div class="m20t"></div>
        <h3 class="boder_b_d m10b">Tidligere skader</h3>
        Er bilen tidligere omlakeret eller repareret i lakken: <?php if($sess->get('repainted')){?><p><i><?php echo $sess->get('repainted');?></i></p><?php } else echo 'Nej';?><br />
        Har bilen nogensinde været udsat for parkeringsskader eller hærværk: <?php if($sess->get('parking_damage')){?><p><i><?php echo $sess->get('parking_damage');?></i></p><?php } else echo 'Nej';?><br />
        Har bilen nogensinde været involveret i et færdselsuheld: <?php if($sess->get('accident')){?><p><i><?php echo $sess->get('accident');?></i></p><?php } else echo 'Nej';?>
        <div class="m10t"></div>
        <div class="cl"></div>
        <a class="btn" href="index.php?option=com_ecommerce&view=register&Itemid=7&layout=step4&action=edit"><img src="<?php echo $tmpl;?>images/btn_edit.jpg" alt=""/></a>
        <div class="cb"></div>

        </div>
        <div class="cb"></div>
        <div class="m15t">
            <a class="bt_send1 float_left btn" href="index.php?option=com_ecommerce&task=saveAll"></a>
            <a class="btn_cancel float_left btn m12l" href="javascript:void(0);"></a>

        </div>
        
      </div>

  </div>
<div class="bg_alert" id="show_popup_at" style="display:none; position: fixed; top: 35%; left: 50%; z-index:10001; margin-left:-140px;">
    <span id="f_focus" style="display:none;"></span>
    <div style="margin:0; padding-top:12px; padding-right: 15px; min-height:60px; font-size: 12px;" id="alert_at"></div>
    <div class="row-btn">
    	<a href="javascript:void(0);" id="ok_link" class="btn" onclick="close_popup_at();"><img alt="" src="templates/tpl_automobil/images/btn_ok.png"></a>
        <a href="javascript:void(0);" onclick="close_popup_at();"><img src="templates/tpl_automobil/images/bt_luk1.png" alt="" /></a>
    </div>
</div>
<div style="display: none;position: fixed; top: 0;left: 0;width: 100%;height: 100%;background-color: #000000;z-index:10000;-moz-opacity: 0.8;opacity:.80;filter: alpha(opacity=80);" id="backoverlay_at"></div>